package hlhj.fhp.newslib.javabean;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2018\6\21 0021.
 */

public class CatBean implements Serializable {

    /**
     * code : 1
     * message : 获取主题颜色成功
     * data : {"subject":null,"list":[{"id":50,"category_id":",1,4,5,","subject_id":",1,2,21,22,","type":4,"subject":[{"id":1,"subject_name":"书记活动集","is_show":1,"add_time":"0000-00-00 00:00:00"},{"id":2,"subject_name":"市长活动集","is_show":1,"add_time":"0000-00-00 00:00:00"}],"list":[{"id":21,"subject_name":"置顶栏目","cover_img":"http://47.97.160.30/application/hlhj_news/uploads/images/20180426/f1707a11cc95b2b3b30275aeeec26c88.jpeg","explain":"没有描述","release":"你猜","is_top":1,"is_hot":0,"click_rate":271,"add_time":"1个月前"}],"data_img":[{"id":21,"cover_img":"http://47.97.160.30/application/hlhj_news/uploads/images/20180426/f1707a11cc95b2b3b30275aeeec26c88.jpeg"}],"title":"成都，是你心中的理想城市吗","extract_img":[],"content":"城市是人类聚集的产物。当人们不断涌入城市，这种空间实体便拥有了巨大的力量。但同时，与日俱增的环境和社会议题也提醒着城市规划者、城市运营者和市民不断思考，什么样的城市才是理想城市？","is_top":0,"is_hot":0,"click_rate":0,"release":"管理员","video_cover":null,"video_url":null,"atlas_img":["1"],"advertisement_img":["http://47.97.160.30/application/hlhj_news/uploads/images/20180428/1e622bc1e2daaaa8cff12300c5328c3d.jpeg"],"advertisement_url":null,"advertiser":"互联互加","add_time":"1个月前"}],"number":1}
     */

    private int code;
    private String message;
    private DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean implements Serializable{
        /**
         * subject : null
         * list : [{"id":50,"category_id":",1,4,5,","subject_id":",1,2,21,22,","type":4,"subject":[{"id":1,"subject_name":"书记活动集","is_show":1,"add_time":"0000-00-00 00:00:00"},{"id":2,"subject_name":"市长活动集","is_show":1,"add_time":"0000-00-00 00:00:00"}],"list":[{"id":21,"subject_name":"置顶栏目","cover_img":"http://47.97.160.30/application/hlhj_news/uploads/images/20180426/f1707a11cc95b2b3b30275aeeec26c88.jpeg","explain":"没有描述","release":"你猜","is_top":1,"is_hot":0,"click_rate":271,"add_time":"1个月前"}],"data_img":[{"id":21,"cover_img":"http://47.97.160.30/application/hlhj_news/uploads/images/20180426/f1707a11cc95b2b3b30275aeeec26c88.jpeg"}],"title":"成都，是你心中的理想城市吗","extract_img":[],"content":"城市是人类聚集的产物。当人们不断涌入城市，这种空间实体便拥有了巨大的力量。但同时，与日俱增的环境和社会议题也提醒着城市规划者、城市运营者和市民不断思考，什么样的城市才是理想城市？","is_top":0,"is_hot":0,"click_rate":0,"release":"管理员","video_cover":null,"video_url":null,"atlas_img":["1"],"advertisement_img":["http://47.97.160.30/application/hlhj_news/uploads/images/20180428/1e622bc1e2daaaa8cff12300c5328c3d.jpeg"],"advertisement_url":null,"advertiser":"互联互加","add_time":"1个月前"}]
         * number : 1
         */

        private Object subject;
        private int number;
        private List<ListBeanX> list;

        public Object getSubject() {
            return subject;
        }

        public void setSubject(Object subject) {
            this.subject = subject;
        }

        public int getNumber() {
            return number;
        }

        public void setNumber(int number) {
            this.number = number;
        }

        public List<ListBeanX> getList() {
            return list;
        }

        public void setList(List<ListBeanX> list) {
            this.list = list;
        }

        public static class ListBeanX implements MultiItemEntity,Serializable {

            @Override
            public int getItemType() {
                return type;
            }

            /**
             * id : 50
             * category_id : ,1,4,5,
             * subject_id : ,1,2,21,22,
             * type : 4
             * subject : [{"id":1,"subject_name":"书记活动集","is_show":1,"add_time":"0000-00-00 00:00:00"},{"id":2,"subject_name":"市长活动集","is_show":1,"add_time":"0000-00-00 00:00:00"}]
             * list : [{"id":21,"subject_name":"置顶栏目","cover_img":"http://47.97.160.30/application/hlhj_news/uploads/images/20180426/f1707a11cc95b2b3b30275aeeec26c88.jpeg","explain":"没有描述","release":"你猜","is_top":1,"is_hot":0,"click_rate":271,"add_time":"1个月前"}]
             * data_img : [{"id":21,"cover_img":"http://47.97.160.30/application/hlhj_news/uploads/images/20180426/f1707a11cc95b2b3b30275aeeec26c88.jpeg"}]
             * title : 成都，是你心中的理想城市吗
             * extract_img : []
             * content : 城市是人类聚集的产物。当人们不断涌入城市，这种空间实体便拥有了巨大的力量。但同时，与日俱增的环境和社会议题也提醒着城市规划者、城市运营者和市民不断思考，什么样的城市才是理想城市？
             * is_top : 0
             * is_hot : 0
             * click_rate : 0
             * release : 管理员
             * video_cover : null
             * video_url : null
             * atlas_img : ["1"]
             * advertisement_img : ["http://47.97.160.30/application/hlhj_news/uploads/images/20180428/1e622bc1e2daaaa8cff12300c5328c3d.jpeg"]
             * advertisement_url : null
             * advertiser : 互联互加
             * add_time : 1个月前
             */

            private int id;
            private String category_id;
            private String subject_id;
            private int type;
            private String title;
            private String content;
            private int is_top;
            private int is_hot;
            private int click_rate;
            private String release;
            private String video_cover;
            private String video_url;
            private String advertisement_url;
            private String advertiser;
            private String add_time;
            private List<SubjectBean> subject;
            private List<ListBean> list;
            private List<DataImgBean> data_img;
            private List<String> extract_img;
            private List<String> atlas_img;
            private List<String> advertisement_img;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getCategory_id() {
                return category_id;
            }

            public void setCategory_id(String category_id) {
                this.category_id = category_id;
            }

            public String getSubject_id() {
                return subject_id;
            }

            public void setSubject_id(String subject_id) {
                this.subject_id = subject_id;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getContent() {
                return content;
            }

            public void setContent(String content) {
                this.content = content;
            }

            public int getIs_top() {
                return is_top;
            }

            public void setIs_top(int is_top) {
                this.is_top = is_top;
            }

            public int getIs_hot() {
                return is_hot;
            }

            public void setIs_hot(int is_hot) {
                this.is_hot = is_hot;
            }

            public int getClick_rate() {
                return click_rate;
            }

            public void setClick_rate(int click_rate) {
                this.click_rate = click_rate;
            }

            public String getRelease() {
                return release;
            }

            public void setRelease(String release) {
                this.release = release;
            }

            public String getVideo_cover() {
                return video_cover;
            }

            public void setVideo_cover(String video_cover) {
                this.video_cover = video_cover;
            }

            public String getVideo_url() {
                return video_url;
            }

            public void setVideo_url(String video_url) {
                this.video_url = video_url;
            }

            public String getAdvertisement_url() {
                return advertisement_url;
            }

            public void setAdvertisement_url(String advertisement_url) {
                this.advertisement_url = advertisement_url;
            }

            public String getAdvertiser() {
                return advertiser;
            }

            public void setAdvertiser(String advertiser) {
                this.advertiser = advertiser;
            }

            public String getAdd_time() {
                return add_time;
            }

            public void setAdd_time(String add_time) {
                this.add_time = add_time;
            }

            public List<SubjectBean> getSubject() {
                return subject;
            }

            public void setSubject(List<SubjectBean> subject) {
                this.subject = subject;
            }

            public List<ListBean> getList() {
                return list;
            }

            public void setList(List<ListBean> list) {
                this.list = list;
            }

            public List<DataImgBean> getData_img() {
                return data_img;
            }

            public void setData_img(List<DataImgBean> data_img) {
                this.data_img = data_img;
            }

            public List<String> getExtract_img() {
                return extract_img;
            }

            public void setExtract_img(List<String> extract_img) {
                this.extract_img = extract_img;
            }

            public List<String> getAtlas_img() {
                return atlas_img;
            }

            public void setAtlas_img(List<String> atlas_img) {
                this.atlas_img = atlas_img;
            }

            public List<String> getAdvertisement_img() {
                return advertisement_img;
            }

            public void setAdvertisement_img(List<String> advertisement_img) {
                this.advertisement_img = advertisement_img;
            }

            public static class SubjectBean implements Serializable{
                /**
                 * id : 1
                 * subject_name : 书记活动集
                 * is_show : 1
                 * add_time : 0000-00-00 00:00:00
                 */

                private int id;
                private String subject_name;
                private int is_show;
                private String add_time;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getSubject_name() {
                    return subject_name;
                }

                public void setSubject_name(String subject_name) {
                    this.subject_name = subject_name;
                }

                public int getIs_show() {
                    return is_show;
                }

                public void setIs_show(int is_show) {
                    this.is_show = is_show;
                }

                public String getAdd_time() {
                    return add_time;
                }

                public void setAdd_time(String add_time) {
                    this.add_time = add_time;
                }
            }

            public static class ListBean implements Serializable{
                /**
                 * id : 21
                 * subject_name : 置顶栏目
                 * cover_img : http://47.97.160.30/application/hlhj_news/uploads/images/20180426/f1707a11cc95b2b3b30275aeeec26c88.jpeg
                 * explain : 没有描述
                 * release : 你猜
                 * is_top : 1
                 * is_hot : 0
                 * click_rate : 271
                 * add_time : 1个月前
                 */

                private int id;
                private String subject_name;
                private String cover_img;
                private String explain;
                private String release;
                private int is_top;
                private int is_hot;
                private int click_rate;
                private String add_time;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getSubject_name() {
                    return subject_name;
                }

                public void setSubject_name(String subject_name) {
                    this.subject_name = subject_name;
                }

                public String getCover_img() {
                    return cover_img;
                }

                public void setCover_img(String cover_img) {
                    this.cover_img = cover_img;
                }

                public String getExplain() {
                    return explain;
                }

                public void setExplain(String explain) {
                    this.explain = explain;
                }

                public String getRelease() {
                    return release;
                }

                public void setRelease(String release) {
                    this.release = release;
                }

                public int getIs_top() {
                    return is_top;
                }

                public void setIs_top(int is_top) {
                    this.is_top = is_top;
                }

                public int getIs_hot() {
                    return is_hot;
                }

                public void setIs_hot(int is_hot) {
                    this.is_hot = is_hot;
                }

                public int getClick_rate() {
                    return click_rate;
                }

                public void setClick_rate(int click_rate) {
                    this.click_rate = click_rate;
                }

                public String getAdd_time() {
                    return add_time;
                }

                public void setAdd_time(String add_time) {
                    this.add_time = add_time;
                }
            }

            public static class DataImgBean implements Serializable{
                /**
                 * id : 21
                 * cover_img : http://47.97.160.30/application/hlhj_news/uploads/images/20180426/f1707a11cc95b2b3b30275aeeec26c88.jpeg
                 */

                private int id;
                private String cover_img;
                private String title;
                public int getId() {
                    return id;
                }

                public String getTitle() {
                    return title;
                }

                public void setTitle(String title) {
                    this.title = title;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getCover_img() {
                    return cover_img;
                }

                public void setCover_img(String cover_img) {
                    this.cover_img = cover_img;
                }
            }
        }
    }
}
